
    <link rel="stylesheet" href="__STATIC__/css/my-style.css"/>
    <link rel="stylesheet" href="__STATIC__/css/mall.css"/>
    <link rel="stylesheet" href="__STATIC__/css/s-settle.css"/>
    <script src="__STATIC__/js/jquery-2.1.1.min.js"></script>


    <div class="page-header mbx">
        <h1>
            <small>
                {$companyName}分公司管理 ｜分红管理 <i class="ace-icon fa fa-times xx"></i>
            </small>
        </h1>
    </div>


      <div class="mbx" style="padding-bottom: 200px;">
          <div class="widget-box transparent">

            <!--  <div class="nav-tab" style="position: relative">
                  <ul class="nav-tab-title ">
                      <li class="nav-this">分红管理</li>
                  </ul>
              </div>-->

              <div class="nav-tab" style="position: relative">
                  <ul class="nav-tab-title ">
                      <li><a href="{:url('index')}">股东分红</a></li>
                      <li class="nav-this">分红记录</li>
                  </ul>
              </div>

              <div class="widget-main padding-10">
                  <div class="row">
                      <div class="col-xs-12">
                          <form class="form-horizontal s_input-bgcolor"  method="post" action="/admin/Profit/stockmoneyallotlist">
                              <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                  <div class="form-group">
                                      <label class="col-sm-3 control-label text-right no-padding-right">用户名： </label>

                                      <div class="col-sm-8">
                                          <input type="text" id="form-field-1-3" placeholder="请输入用户名" name="uname" value="{$postArr.uname}"
                                                 class="form-control">
                                      </div>
                                  </div>
                              </div>
                              <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                  <div class="form-group">
                                      <label class="col-sm-3 control-label text-right no-padding-right">真实姓名： </label>

                                      <div class="col-sm-8">
                                          <input type="text" placeholder="请输入股东真实姓名"  name="tname" value="{$postArr.tname}" class="form-control">
                                      </div>
                                  </div>
                              </div>
                              <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                  <div class="form-group">
                                      <label class="col-sm-3 control-label text-right no-padding-right">分红时间： </label>

                                      <div class="col-sm-8">
                                          <div class="input-daterange input-group">
                                              <input type="text" class="input-sm form-control hm-shop-upgrade"
                                                     placeholder="开始时间" name="start" id="start"   value="{$postArr.start}">
                                              <span class="input-group-addon"
                                                    style="background: none;border: none;">
																	-
																</span>
                                              <input type="text" class="input-sm form-control hm-shop-upgrade"
                                                     placeholder="结束时间" name="end" id="end" value="{$postArr.end}" >
                                          </div>
                                      </div>
                                  </div>
                              </div>
                              <div class="text-right">
                                  <button class="btn "
                                          style="width: 120px;    border-radius: 2rem; background: #fba40a!important;border-color: #fba40a;margin-left: 20px;">
                                      查询
                                  </button>
                              </div>
                          </form>
                          <!-- 分红记录-->
                          <div id="view-list">
                              <div class="row">
                                  <div class="col-xs-12" style="padding: 0">
                                      <div class="row fgs-flex" style="background: #edeff2;margin-bottom: 20px">
                                          <span class="col-lg-2" style="padding-left: 40px">分红次数</span>
                                          <span class="col-lg-2">分红时间</span>
                                          <span class="col-lg-2">分红总金额</span>
                                      </div>
                                  </div>
                                  <div class="cb-reco-block">
                                      {foreach name='group' item='vv'}
                                      <div class="row fgs-flex">
                                          <div class="col-lg-2 cb-tabqj"><img src="__STATIC__/images/unfold_icon.png" alt="" />第<span style="color: red">{$vv.allot_num}</span>次分红</div>
                                          <div class="col-lg-2">{$vv.addtime}</div>
                                          <div class="col-lg-8">{$vv.allot_money}</div>
                                      </div>

                                      <div class="row list" style="display: none;">
                                          <div class="col-xs-12">
                                              <table class="table table-hover" width="100%" style="table-layout:fixed;margin-bottom: 20px">
                                                  <thead>
                                                  <tr class="cb-set-height">
                                                      <th class="center">用户名</th>
                                                      <th class="center">真实姓名</th>
                                                      <th class="center">股东类型</th>
                                                      <th class="center">分红占股</th>
                                                      <th class="left">分红金额</th>
                                                  </tr>
                                                  </thead>
                                                  <tbody>
                                                  {foreach name='vv.kk' item='v'}
                                                  <tr class="s_tr-vertical s_tr-border s_shoplist-first">
                                                      <td class="center">{$v.username}</td>
                                                      <td class="center">{$v.truename}</td>
                                                      <td class="center">{$stockRes[$v.stocktype]}</td>
                                                      <td class="center">{$v.stocknum}%</td>
                                                      <td class="left">{$v.money}</td>
                                                  </tr>
                                                  {/foreach}
                                                  </tbody>
                                              </table>
                                          </div>
                                      </div>
                                      {/foreach}
                                      {empty name="group"}
                                          <div class="row list">
                                              <div class="col-xs-12" style="color: red; font-size: 16px; text-align: center">
                                                  没有查询到结果
                                              </div>
                                          </div>
                                      {/empty}
                                  </div>

                              </div>
                          </div>
                      </div>
                      <!-- /.col -->
                  </div>
              </div>
          </div>
      </div>
    <div class="text-center">
        {$pageShow}
    </div>


<script type="text/javascript">
  laydate.render({
    elem: '#start' //指定元素
  });
  laydate.render({
    elem: '#end' //指定元素
  });
  $("#view-list").on("click", ".fgs-flex", function () {
          $(this).next().toggle();
  });

  $(document).ready(function(){
      $(".btn1").click(function(){
          $("p").toggle();
      });
  });

</script>